<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>添加和修改员工</title>
	<%@ include file="/view/common/tags.jsp"%>
</head>
<body>
	<div class="well well_p" >
		<sk:form method="post" cssClass="form-horizontal" action=""  id="saveAndUpdateFrom" target="_parent"  >
			<div class="form-group">
				<label class="col-xs-3 text-right">帐号:</label>
				<div class="col-xs-7">
					<input type="text" class="form-control" name="staffAccount" id="staffAccount" value="${userEdit.staffAccount }" <c:if test="${userEdit.rowId != null}">readonly='readonly'</c:if> placeholder="输入帐号" onblur="checkAccount()">
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-3 text-right">密码:</label>
				<div class="col-xs-7">
					<input type="password" class="form-control" name="staffPwd" id="staffPwd" value="${userEdit.staffPwd }" <c:if test="${userEdit.rowId != null}">readonly='readonly'</c:if> placeholder="输入密码">
				</div>
			</div>
			<div class="form-group" >
				<label class="col-xs-3 text-right">工号:</label>
				<div class="col-xs-7">
					<input type="text" class="form-control" name="staffAccountCode" id="staffAccountCode" value="${userEdit.staffAccountCode }">
				</div>
			</div>
			<div class="form-group" >
				<label class="col-xs-3 text-right">姓名:</label>
				<div class="col-xs-7">
					<input type="text" class="form-control" name="staffName" id="staffName" value="${userEdit.staffName }">
				</div>
			</div>
			<div class="form-group" >
				<label class="col-xs-3 text-right">昵称:</label>
				<div class="col-xs-7">
					<input type="text" class="form-control" name="nickName" id="nickName" value="${userEdit.nickName }">
				</div>
			</div>
			<div class="form-group" >
				<label class="col-xs-3 text-right">QQ:</label>
				<div class="col-xs-7">
					<input type="text" class="form-control" name="qq" id="qq" value="${userEdit.qq }" placeholder="输入QQ">
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-3 text-right">手机:</label>
				<div class="col-xs-7">
					<input type="text" class="form-control" name="phone" id="phone" value="${userEdit.phone }" placeholder="输入手机号码" onblur="checkPhone()">
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-3 text-right">角色:</label>
				<div class="col-xs-7">
				    <sk:select cssClass="form-control select" id="staffType" name="staffType" value="${userEdit.staffType}" requiredInit="true" ajaxURL="${sysManagerV1}/role/role_dict?wm[_NOT_EQUAL$ROLE_TYPE]=1"  >
                         <option value="">请选择</option>
                    </sk:select>
				</div>
				
			</div>
			<input type="hidden" id="rowId" name="rowId" value="${userEdit.rowId}">
			<input type="hidden" id="isReCommit" value="0">
		</sk:form>
	</div>
</body>
   <%@ include file="/view/common/footer.jsp"%>
   <script type="text/javascript" src="${sysManagerV1}/view/js/system/staff_editor.js"></script>
</html>